﻿namespace ConsoleApp10
{
     class Program
    {
        static void Main(string[] args)
        {
            int count = 0;

            for (int i = 1; i <= 4; i++)
            {
                for (int j = 1; j <= 4; j++)
                {
                    for (int k = 1; k <= 4; k++)
                    {
                        if (i != j && i != k && j != k)
                        {
                            Console.WriteLine($"{i}{j}{k}");
                            count++;
                        }
                    }
                }
            }

            Console.WriteLine($"总共能组成 {count} 个互不相同且无重复数字的三位数");
        }
    }
}
